<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="box1">hello div</div>
    <p id="p1">hello p</p>
    <script>
      const boxEl = document.getElementById("box1");
      console.log(boxEl === document.body.children[0]);
      const pEl = document.getElementById("p1");
      console.log(pEl === document.body.children[1]);
    </script>
  </body>
</html>
